package cn.com.trueway.controller;

import cn.com.trueway.service.AOPDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/aop")
public class AOPDemoController {

    @Autowired
    private AOPDemoService aopDemoService;

    @RequestMapping("/add")
    public String add(){
        aopDemoService.add();
        return "SUCCESS";
    }
}
